import request from '@/utils/request'

// 查询调查结算列表
export function listSurveycountlog(query) {
  return request({
    url: '/surveycountlog/surveycountlog/list',
    method: 'get',
    params: query
  })
}

// 查询调查结算详细
export function getSurveycountlog(surveyId) {
  return request({
    url: '/surveycountlog/surveycountlog/' + surveyId,
    method: 'get'
  })
}

// 手动更新数据
export function addSurveycountlog(data) {
  return request({
    url: '/surveycountlog/surveycountlog',
    method: 'post',
    data: data
  })
}

// 修改调查结算
export function updateSurveycountlog(data) {
  return request({
    url: '/surveycountlog/surveycountlog',
    method: 'put',
    data: data
  })
}
